package com.woniuxy.dao;

import com.woniuxy.entity.Invoice_register;
import com.woniuxy.entity.OrderEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author leimin
 * @create 2022-04-26 19:03
 */
@Mapper
public interface InvoiceRegisterDao {
    List<Invoice_register> findAllByCondition(Invoice_register invoice_register);

    List<Invoice_register> findAll();

    Invoice_register findOne(int id);

    int addOne(Invoice_register invoice_register);

    int deleteOne(int id);

    int deleteBatch(int[] ids);

    int updateOne(Invoice_register invoice_register);

    List<OrderEntity> findOrder(OrderEntity order);

    int updateOrder(@Param("order_num") String order_num, @Param("order_status") int order_status);

    List<String> findBatchOrder_num(int[] ids);

    int updateBatchOrder(List<String> list);
}
